<%@ page import="java.util.List" %>
<%@ page import="com.bonc.bean.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
    <style type="text/css">
        table {border: 1px solid #000;}
        table tr td,table tr th {border: 1px solid #000;}
    </style>
</head>
<body>
<%
    List<User> userList = (List<User>) request.getAttribute("userList");
%>
<table cellspacing="0" cellpadding="8px">
    <thead>
    <tr>
        <th>Number</th>
        <th>Name</th>
        <th>Mobile</th>
        <th>Tel</th>
        <th>Email</th>
    </tr>
    </thead>
    <tbody>
    <%
        for (int i = 0; i < userList.size(); i++) {
            User user = userList.get(i);
    %>
    <tr>

        <td><%=user.getNumber()%></td>
        <td><%=user.getUserName()%></td>
        <td><%=user.getMoblie()%></td>
        <td><%=user.getTel()%></td>
        <td><%=user.getEmail()%></td>

    </tr>
    <%
        }
    %>

    </tbody>
</table>
</body>
</html>